
package com.ami.kvm.jviewer.communication;

import com.ami.kvm.jviewer.Debug;

public class NWListener implements Runnable {
	private boolean m_run = false;

	private Client m_clnt;

	public NWListener(Client paramClient) {
		this.m_clnt = paramClient;
		this.m_run = true;
	}

	public void startListener() {
		this.m_run = true;
	}

	public void destroyListener() {
		this.m_run = false;
	}

	public void run() {
		while (this.m_run) {
			try {
				this.m_clnt.onReadEvent();
			} catch (Exception localException) {
				Debug.out.println(localException);
			}
		}
	}
}
